const crypto = require('crypto');

module.exports = function (s) {
    const jiami = crypto.createHash('sha1');
    jiami.update(s);

    return jiami.digest('hex');
}